﻿<phone:PhoneApplicationPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:SliderApp" xmlns:Blacklight_Controls="clr-namespace:Blacklight.Controls" 
    x:Class="SliderApp.MainPage"
    d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    mc:Ignorable="d"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="SLIDER TEST" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageName" Text="sliders" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <TextBlock Text="slider with default template" Style="{StaticResource PhoneTextNormalStyle}"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="value (0-100):" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBlock Text="{Binding Value, ElementName=defaultSlider}" Style="{StaticResource PhoneTextNormalStyle}"/>
            </StackPanel>
            <Slider x:Name="defaultSlider" Minimum="0" Maximum="100"/>
            <TextBlock Text="slider with modified template" Style="{StaticResource PhoneTextNormalStyle}"/>
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="value (50000-1000000):" Style="{StaticResource PhoneTextNormalStyle}"/>
                <TextBlock Text="{Binding Value, ElementName=slider}" Style="{StaticResource PhoneTextNormalStyle}"/>
            </StackPanel>
            <local:PhoneSlider x:Name="slider" Minimum="0" Maximum="100" Style="{StaticResource sliderStyle}"/>
            
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <StackPanel>
                    <TextBlock Text="default template" Style="{StaticResource PhoneTextNormalStyle}"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="value (0-100):" Style="{StaticResource PhoneTextNormalStyle}"/>
                        <TextBlock Text="{Binding Value, ElementName=vDefaultSlider}" Style="{StaticResource PhoneTextNormalStyle}"/>
                    </StackPanel>
                    <Slider x:Name="vDefaultSlider" Minimum="0" Maximum="100" Orientation="Vertical" Height="200" HorizontalAlignment="Center"/>
                </StackPanel>
                <StackPanel Grid.Column="1">
                    <TextBlock Text="modified template" Style="{StaticResource PhoneTextNormalStyle}"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="value (0-100):" Style="{StaticResource PhoneTextNormalStyle}"/>
                        <TextBlock Text="{Binding Value, ElementName=vSlider}" Style="{StaticResource PhoneTextNormalStyle}"/>
                    </StackPanel>
                    <local:PhoneSlider x:Name="vSlider" Minimum="0" Maximum="100" Orientation="Vertical" Height="176" HorizontalAlignment="Center" Style="{StaticResource sliderStyle}"/>
                </StackPanel>
            </Grid>
            <Blacklight_Controls:RangeSlider Style="{StaticResource RangeSliderStyle}"/>
        </StackPanel>
    </Grid>

</phone:PhoneApplicationPage>